package com.ruoyi.back.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单查询对象 ordert
 *
 * @author ruoyi
 * @date 2022-09-24
 */
public class OrdertTH extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单号 */
    private Long orderid;

    /** 地址Id */
    @Excel(name = "地址Id")
    private Long addressid;

    /** 购物车Id */
    @Excel(name = "购物车Id")
    private String shoppingcartids;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String ordernum;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ordertime;

    /** 订单详细编号 */
    @Excel(name = "订单详细编号")
    private Long orderdtlid;

    /** 下单用户 */
    @Excel(name = "下单用户")
    private Long userid;

    public void setOrderid(Long orderid)
    {
        this.orderid = orderid;
    }

    public Long getOrderid()
    {
        return orderid;
    }
    public void setAddressid(Long addressid)
    {
        this.addressid = addressid;
    }

    public Long getAddressid()
    {
        return addressid;
    }
    public void setShoppingcartids(String shoppingcartids)
    {
        this.shoppingcartids = shoppingcartids;
    }

    public String getShoppingcartids()
    {
        return shoppingcartids;
    }
    public void setOrdernum(String ordernum)
    {
        this.ordernum = ordernum;
    }

    public String getOrdernum()
    {
        return ordernum;
    }
    public void setOrdertime(Date ordertime)
    {
        this.ordertime = ordertime;
    }

    public Date getOrdertime()
    {
        return ordertime;
    }
    public void setOrderdtlid(Long orderdtlid)
    {
        this.orderdtlid = orderdtlid;
    }

    public Long getOrderdtlid()
    {
        return orderdtlid;
    }
    public void setUserid(Long userid)
    {
        this.userid = userid;
    }

    public Long getUserid()
    {
        return userid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderid", getOrderid())
            .append("addressid", getAddressid())
            .append("shoppingcartids", getShoppingcartids())
            .append("ordernum", getOrdernum())
            .append("ordertime", getOrdertime())
            .append("orderdtlid", getOrderdtlid())
            .append("userid", getUserid())
            .toString();
    }
}
